package se.sll.service.catalogue.common.message;

import java.io.Serializable;
import java.util.ArrayList;
import java.util.Date;
import lombok.Data;
import lombok.NonNull;

/**
 * Class to carry information about units with updated offers
 * @author Jiri Uosukainen
 */
@Data
public class OffersUpdatedMessage implements Serializable{

    static final long serialVersionUID = 1L;
    
    private Date updatedAfter;
    private Date updatedBefore;
    private ArrayList<String> unitIds;

    public OffersUpdatedMessage(@NonNull Date updatedAfter, @NonNull Date updatedBefore,@NonNull ArrayList<String> unitIds) {
        this.updatedAfter = updatedAfter;
        this.updatedBefore = updatedBefore;
        this.unitIds = unitIds;
    }

}
